
using System;
using System.Collections.Generic;
using System.Data;
using asd.DataType.asdf;
using Petaframe.Business;
using Petaframe.DataAccess;

namespace asd.Business.asdf
{
    [ServiceConnectionName("asd.Business.asdf.ConnectionString", DataProvider = DataProvider.SqlServer)]
    public class RegionBS : BusinessBase
    {	   
	   public object Kaydet(Region region)
	   {
			IDataService data = GetDataObject();
			return data.Insert(region);
	   }

	   public void Guncelle(Region region)
	   {
			IDataService data = GetDataObject();
			data.Update(region);
	   }

	   public void Sil(int RegionID)
	   {
			IDataService data = GetDataObject();
			data.Delete(RegionID);
	   }

	   public List<Region> Listele()
	   {
			IDataService data = GetDataObject();
			return data.FindAll<Region>();
	   }

	   public void TopluKaydetGuncelle(List<Region> listRegion)
	   {
			IDataService data = GetDataObject();
			data.TopluKaydetGuncelle(listRegion);
	   }
    }
}

